spinbutton: expand the entry
authorTimm Bäder <mail@baedert.org>
Sat, 15 Jul 2017 06:44:09 +0000 (08:44 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000 (21:27 -0400)
It's supposed to fill the entire spinbutton allocation apart from the
buttons

gtk/gtkspinbutton.c

index 71498d90718612fa093980a41a46b3a1e3b3c12f..464ca93c011c537da4fc5ae7e3b3d203e1118058 100644 (file)
@@ -870,6 +870,8 @@ gtk_spin_button_init (GtkSpinButton *spin_button)
   priv->entry = gtk_entry_new ();
   gtk_entry_set_width_chars (GTK_ENTRY (priv->entry), 0);
   gtk_entry_set_max_width_chars (GTK_ENTRY (priv->entry), 0);
+  gtk_widget_set_hexpand (priv->entry, TRUE);
+  gtk_widget_set_vexpand (priv->entry, TRUE);
   g_signal_connect (priv->entry, "activate", G_CALLBACK (gtk_spin_button_activate), spin_button);
   gtk_container_add (GTK_CONTAINER (priv->box), priv->entry);